<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class OpinionClass extends BaseModel
{

    protected $connection;
    protected $table = 'opinion_class';
    protected $fillable=[
        'title',
        'code',
        'remark',
        'state'
    ];




    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }

}
